package com.ygqh.baby.service.wechat.model.good;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

/**
 * 好物圈——物品的条形码信息
 *
 * @Author: sunshuo
 * @Date: 2019/5/21 11:18
 * @Version: 1.0
 */
public class GoodBarCode implements Serializable {

	private static final long serialVersionUID = -1557482246449188312L;

	/**
	 * 条形码类型, 目前支持"ean8", "ean13", 前者对应的barcode为8位纯数字字符串，后者为13位纯数字字符串
	 */
	private String barcodeType;

	/**
	 * 条形码数字字符串
	 */
	private String barcode;

	@JSONField(name = "barcode_type")
	public String getBarcodeType() {
		return barcodeType;
	}

	public void setBarcodeType(String barcodeType) {
		this.barcodeType = barcodeType;
	}

	@JSONField(name = "barcode")
	public String getBarcode() {
		return barcode;
	}

	public void setBarcode(String barcode) {
		this.barcode = barcode;
	}

	@Override
	public String toString() {
		return "GoodBarCode{" +
				"barcodeType='" + barcodeType + '\'' +
				", barcode='" + barcode + '\'' +
				'}';
	}
}
